package com.xjzd.std.stream;

import java.util.Arrays;
import java.util.stream.Stream;

public class CollectorsDemo {

    public static void main(String[] args) {
        Integer[] array = Stream.of(1, 2, 3, 4, 5, 6).toArray(Integer[]::new);
        System.out.println(Arrays.toString(array));
    }
}
